<template>
  SpecialtyManagement
  <!--    <div>-->
  <!--        <el-row :gutter="20">-->
  <!--            <el-col :span="3">-->
  <!--                <el-button type="primary" icon="Plus" @click="openAddDialog">添加专业</el-button>-->
  <!--            </el-col>-->
  <!--            <el-col :span="6">-->
  <!--                <college-select @selectCollege="filterSpecialByCollege">-->
  <!--                </college-select>-->
  <!--            </el-col>-->
  <!--        </el-row>-->
  <!--        <el-table :data="specialties" style="width: 100%">-->
  <!--            <el-table-column prop="code" label="专业代码" width="120" />-->
  <!--            <el-table-column prop="name" label="专业名称" width="160" />-->
  <!--            <el-table-column prop="level" label="专业层次" width="120">-->
  <!--                <template #default="scope">本科</template>-->
  <!--            </el-table-column>-->
  <!--            <el-table-column prop="time" label="学制" width="80" />-->
  <!--            <el-table-column prop="category" label="类别" width="80" />-->
  <!--            <el-table-column prop="college" label="所属学院" width="180" />-->
  <!--            <el-table-column label="操作">-->
  <!--                <template #default="scope">-->
  <!--                    <el-button size="small" type="success" @click="openEditDrawer(scope.row)">编辑</el-button>-->
  <!--                    <el-button size="small" type="warning" @click="handleStatus(scope.row)">-->
  <!--                        {{ scope.row.status == 1 ? '暂停' : '恢复' }}</el-button>-->
  <!--                    <el-button size="small" type="danger" @click="handleDelete(scope.row)">删除</el-button>-->
  <!--                </template>-->
  <!--            </el-table-column>-->
  <!--        </el-table>-->
  <!--        <el-row style="margin-top: 10px;">-->
  <!--            <el-col :span="12" :offset="3">-->
  <!--                <el-pagination v-model:current-page="currentPage" :page-size="7" background="true" :total="3"-->
  <!--                    hide-on-single-page layout="total, prev, pager, next" @current-change="handleCurrentChange" />-->
  <!--            </el-col>-->
  <!--        </el-row>-->
  <!--        &lt;!&ndash;添加专业信息对话框&ndash;&gt;-->
  <!--        <el-dialog v-model="dialogFormVisible" title="添加专业" draggable>-->
  <!--            <el-form ref="addSpecialtyForm" :model="specialty" :rules="rules" label-width="100px" label-position="right">-->
  <!--                <el-form-item label="学科" prop="category">-->
  <!--                    <el-radio-group v-model="specialty.category" size="large">-->
  <!--                        <el-radio-button v-for="(category, index) in categories" :label="category" :key="index" />-->
  <!--                    </el-radio-group>-->
  <!--                </el-form-item>-->
  <!--                <el-form-item label="专业代码" prop="code">-->
  <!--                    <el-input v-model="specialty.code" autocomplete="off" />-->
  <!--                </el-form-item>-->
  <!--                <el-form-item label="专业名称" prop="name">-->
  <!--                    <el-input v-model="specialty.name" autocomplete="off" />-->
  <!--                </el-form-item>-->
  <!--                <el-form-item label="专业层次" prop="level">-->
  <!--                    <el-radio-group v-model="specialty.level">-->
  <!--                        <el-radio :label="0" size="large">专科</el-radio>-->
  <!--                        <el-radio :label="1" size="large">本科</el-radio>-->
  <!--                        <el-radio :label="2" size="large">研究生</el-radio>-->
  <!--                    </el-radio-group>-->
  <!--                </el-form-item>-->
  <!--                <el-form-item label="所属学院" prop="name">-->
  <!--                    <college-select @selectCollege="(value) => specialty.collegeId = value" />-->
  <!--                </el-form-item>-->
  <!--                <el-form-item label="学制" prop="time">-->
  <!--                    <el-input-number v-model="specialty.time" :min="1" :max="10" /><el-text-->
  <!--                        style="margin-left: 10px;">年</el-text>-->
  <!--                </el-form-item>-->

  <!--            </el-form>-->
  <!--            <template #footer>-->
  <!--                <span>-->
  <!--                    <el-button @click="dialogFormVisible = false">取消</el-button>-->
  <!--                    <el-button type="primary" @click="handleAdd">-->
  <!--                        提交-->
  <!--                    </el-button>-->
  <!--                </span>-->
  <!--            </template>-->
  <!--        </el-dialog>-->
  <!--    </div>-->
</template>

<script>
// import CollegeSelect from '../college/CollegeSelect.vue'
// import { specialties, findByCollege } from '@/api/specialty';

export default {
  name: 'SpecialtyManagement',
  // components: {
  //     CollegeSelect,
  // },
  // data() {
  //     return {
  //         specialties: [],
  //         dialogFormVisible: false,
  //         specialty: {},
  //         categories: ["工学", "理学", "文学", "艺术学", "农学", "经济学", "法学", "哲学", "历史学", "管理学", "医学", "军事学"]
  //     }
  // },
  // created() {
  //     this.fetchSpecialties()
  // },
  // methods: {
  //     fetchSpecialties() {
  //         specialties().then(res => {
  //             this.specialties = res.data
  //         })
  //     },
  //     filterSpecialByCollege(collegeId) {
  //         if (collegeId == -1) {
  //             fetchSpecialties()
  //         } else {
  //             findByCollege(collegeId).then(res => {
  //                 this.specialties = res.data
  //             })
  //         }
  //     },
  //     handleCurrentChange(val) {
  //         this.fetchSpecialties(val)
  //     },
  //     openAddDialog() {
  //         this.dialogFormVisible = true
  //     }
  // }
}
</script>
